<template>
  <svg class="svg-icon" :class="{ active }">
    <use :href="`#${href}`" />
  </svg>
</template>

<script>
export default {
  name: 'xIcon',
  props: {
    href: {
      type: String,
      default: 'icon-dianying'
    },
    active: {
      type: Boolean,
      default: false
    }
  }
}
</script>

<style lang="scss" scoped>
.svg-icon {
  height: 20px;
  width: 20px;
  fill: #646566;
}
.active {
  fill: #1989fa;
}
</style>
